#ifndef TIMINGSWITCHDIALOG_H
#define TIMINGSWITCHDIALOG_H

#include "selectclientdialog.h"
#include "clientcenter.h"
#include "common.h"
#include "datacenter.h"
#include "clientcenter.h"
#include "singleclient.h"
#include "NetworkCommonFunction.h"

#include "childwindowbase.h"

namespace Ui {
    class TimingSwitchDialog;
}

class TimingSwitchDialog : public ChildWindowBase
{
    Q_OBJECT

public:
	explicit TimingSwitchDialog(ChildWindowBase *parent = 0);
    ~TimingSwitchDialog();

private:
    Ui::TimingSwitchDialog *ui;
	SelectClientDialog* m_SelectClientDialog;
	std::vector<boost::shared_ptr<SingleClient> > m_ClientList;

	void setupWidget();
	void setupSignal();
	void SendCommand(const QString& cmdType,const QString& time = NULL);

protected:
	void changeEvent(QEvent *e);
	void showGroupView(int groupId);

private slots:
	void onSetClient();
	void onSelectClientDlg();

	void onShutdown();
	void onRestart();
	void onTimingShutdown();
	void onCancelTiming();


};

#endif // TIMINGSWITCHDIALOG_H
